package week2

import (
	"errors"
	"fmt"

	"./dao"
)

func main() {
	pdo := dao.NewPicDao()
	piclist, err := pdo.GetPicsByCid(1)
	if err != nil {
		// add log
		return
	}
	if errors.Is(err, dao.ERRNOTFOUND) {
		// add log
		return
	}

	fmt.Println(piclist)
}
